#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@__author:xiaojungao(借鉴luruiyaun)
'''
import os
def new_report():
    result_dir = './report'
    lists = os.listdir(result_dir)
    lists.sort(key=lambda fn: os.path.getmtime(result_dir + '\\' + fn))
    print("最新文件为：" + lists[-1])
    file = os.path.join(result_dir, lists[-1])
    f = open(file,'rb')
    file_content = f.read()
    f.close()
    return file_content